<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="InstanceSysProcesses.aspx.cs" Inherits="InstanceSysProcesses" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="Table3" cellpadding="5" cellspacing="0" width="100%">
        <tr>
            <td bgcolor="#EBE7E7" colspan="2">
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 186px; height: 18px">
                                Processes&nbsp;</td>
                            <td align=right><asp:LinkButton ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" ForeColor="Green">Refresh Process Info</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
        </table>
        <table id="Table1" cellpadding="0" cellspacing="1" width="100%">
        <tr style="color: #000000">
            <td colspan="2">
                <asp:Panel id="divProcesses" runat="server" ScrollBars="Horizontal" Width="794">
                <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333"
                    GridLines="None" Width="100%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="spid" HeaderText="spid">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="blocked" HeaderText="blocked">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="databasename" HeaderText="database">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="cpu" HeaderText="cpu">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="physical_io" HeaderText="physical_io">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="memusage" HeaderText="memusage">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="waittime" HeaderText="waittime">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="hostname" HeaderText="hostname">
                            <ItemStyle HorizontalAlign="Left" Wrap=true />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="loginame" HeaderText="loginame">
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>               
                </asp:Panel>
            </td>
        </tr>
        <table id="Table2" cellpadding="5" cellspacing="0" width="100%">
        <tr>
            <td bgcolor="#EBE7E7" colspan="2">
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 186px; height: 18px">
                                Locks</td>
                            <td align="right"><asp:LinkButton ID="btnRefreshLocks" runat="server" 
                                    ForeColor="Green" onclick="btnRefreshLocks_Click">Refresh Lock Info</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
        </table>
        <table id="Table4" cellpadding="0" cellspacing="1" width="100%">
        <tr style="color: #000000">
            <td colspan="2">
            <asp:Panel id="divLocks" runat="server" ScrollBars="Horizontal" Width="794">
                <asp:GridView ID="gvLocks" runat="server" AutoGenerateColumns="true" CellPadding="4" ForeColor="#333333"
                    GridLines="None" Width="100%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White"
                        HorizontalAlign="Left" Wrap="False" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

